<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Dotnet2-web 后台管理系统</title>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<body>
<!--header-->
<%@ include file="/jsp/top.jsp"%>
<!--header-->

<!--aside nav-->
<%@ include file="/jsp/left.jsp"%>
<!--aside nav  -->
<section class="rt_wrap content mCustomScrollbar" style="margin-top:10px;">
      <div class="page_title">
       <!-- <a class="fr top_rt_btn" href="javascript:js.back()">返回</a> -->
      </div>
      <table class="table">
		<thead>
			<tr>
				<td style="display: none">ID</td>
				<th>信号源地址</th>
				<th>信号源名称</th>
				<th>是否启用</th>
				<th>是否删除</th>
				<th>创建时间</th>
				<th>操作</th>	
			</tr>
		</thead>
		<c:forEach items="${page.list}" var="audioinfo">
			<tr align="center">
				<td style="display: none">${audioinfo.id}</td>
				<td >${audioinfo.audioAddress}</td>
				<td >${audioinfo.audioName}</td>
				<%-- <td >${computerinfo.comPid}</td> --%>
				<td >${audioinfo.isUse==0?"<font color=red>否</font>":"<font color=green>是</font>"}</td>
				<td >${audioinfo.isDelete==0?"<font color=red>否</font>":"<font color=green>是</font>"}</td>
				<td ><fmt:formatDate value="${audioinfo.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
       			<td>
       			<!-- 是否启用 -->
       			<a class="btn btn-warning" href="${path}/audio/audioUp.do?id=${audioinfo.id}&isUse=${audioinfo.isUse}&comId=${audioinfo.comId}">
       				<c:if test="${audioinfo.isUse==0}">启用</c:if>
       				<c:if test="${audioinfo.isUse==1}">停用</c:if>
       			</a>
       				
       			<!-- 是否删除 -->
       			<a class="btn btn-warning" href="${path}/audio/audioDel.do?id=${audioinfo.id}&isDelete=${audioinfo.isDelete}&comId=${audioinfo.comId}">
       				<c:if test="${audioinfo.isDelete==0}">删除</c:if>
       				<c:if test="${audioinfo.isDelete==1}">恢复</c:if>
       			</a>
       			</td>
			</tr>
		</c:forEach>										
	</table>
	<aside class="paging">
	 	<c:forEach items="${page.pageView}" var="page">
	 		${page }
	 	</c:forEach>
	 </aside>					
</section>

</body>
</html>
